package com.wang.study.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author mark
 * @since 2020-06-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TbUser对象", description = "用户表")
public class TbUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户主键")
    @TableId(value = "user_no", type = IdType.AUTO)
    private String userNo;

    @ApiModelProperty(value = "是电话号码，也是账号（登录用）")
    private String mobile;

    @ApiModelProperty(value = "姓名")
    private String userName;

    @ApiModelProperty(value = "密码")
    private String passWord;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Long createTime;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "状态值（1：启用，2：禁用，3：删除）")
    private Integer status;

    @ApiModelProperty(value = "职位")
    private String job;


}
